package com.mzxy.boxuegu.activity;

import android.content.Intent;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.mzxy.boxuegu.R;

import org.w3c.dom.Text;

public class MainActivity extends AppCompatActivity {
    private TextView tvBack;
    private TextView tvMainTitle;
    private FrameLayout flMainBody;
    private RelativeLayout rlBottomBarCourseBtn;
    private RelativeLayout rlBottomBarExercisesBtn;
    private RelativeLayout rlBottomBarMyinfoBtn;
    private TextView tvBottomBarTextCourse;
    private TextView tvBottomBarTextExercises;
    private TextView tvBottomBarTextMyinfo;
    private ImageView ivBottomBarImageCourse;
    private ImageView ivBottomBarImageExercises;
    private ImageView ivBottomBarImageMyinfo;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
        //设置标题栏
        tvMainTitle.setText("博学谷课程");
        findViewById(R.id.title_bar).setBackgroundColor(Color.parseColor("#30B4FF"));
        tvBack.setVisibility(View.GONE);
    }

    private void initView() {
        tvBack = (TextView) findViewById(R.id.tv_back);
        tvMainTitle = (TextView) findViewById(R.id.tv_main_title);
        flMainBody = (FrameLayout) findViewById(R.id.main_body);
        rlBottomBarCourseBtn = (RelativeLayout) findViewById(R.id.bottom_bar_course_btn);
        rlBottomBarExercisesBtn = (RelativeLayout) findViewById(R.id.bottom_bar_exercises_btn);
        rlBottomBarMyinfoBtn = (RelativeLayout) findViewById(R.id.bottom_bar_myinfo_btn);
        tvBottomBarTextCourse = (TextView) findViewById(R.id.bottom_bar_text_course);
        tvBottomBarTextExercises = (TextView) findViewById(R.id.bottom_bar_text_exercises);
        tvBottomBarTextMyinfo = (TextView) findViewById(R.id.bottom_bar_text_myinfo);
        ivBottomBarImageCourse = (ImageView) findViewById(R.id.bottom_bar_image_course);
        ivBottomBarImageExercises = (ImageView) findViewById(R.id.bottom_bar_image_exercises);
        ivBottomBarImageMyinfo = (ImageView) findViewById(R.id.bottom_bar_image_myinfo);
    }


    public void toRegister(View view){
        startActivity(new Intent(this,RegisterActivity.class));
    }
}
